<?php
header("Content-type:text/html; charset=utf-8;");
require '../../../ppf/fun.php';
require '../../../ppf/pdo_mysql.php';
require '../../../ppf/Filter.php';

$pd=new pdo_mysql();
$filter=new Filter();
session_start();

if(empty($_SESSION['uid'])){
    $tips=array(
		'tips'=>'请登录后再进行操作',
		'url'=>'index.php'
	);
	$tips=urlencode(serialize($tips));
	header('Location:../tips.php?gets='.$tips);
	exit;
}

$submitMethod=$_SERVER["REQUEST_METHOD"];
if($submitMethod=='POST'){
    $now=date('Y-m-d H:i:s');
}else{
	$tips=array(
		'tips'=>'不允许的表单提交方式，请按正常流程提交表单。',
		'url'=>'index.php'
	);
	$tips=urlencode(serialize($tips));
	header('Location:../tips.php?gets='.$tips);
}
?>